package com.bq.server.service;


import com.bq.server.core.model.CadreAppointInfo;
import com.bq.server.core.model.Department;
import com.bq.server.core.vo.request.DepartmentRequest;
import com.bq.server.core.vo.response.DeptAndCadreInfoResponse;
import com.bq.server.tree.TreeNode;

import java.util.List;

/**
 * 部门相关接口
 *
 * @author shchen
 */
public interface DepartmentService {


    List<TreeNode<Department>> getDepartmentTrees();

    void remove(Long id);

    void create(DepartmentRequest request);

    List<CadreAppointInfo> getCadres(Long id);

    DeptAndCadreInfoResponse searchDeptAndCadres(String search);

    void updateNameById(Long id, DepartmentRequest request);

}






